<template>
  <div class="header">
    <p>数据分析工具</p>
  </div>
  <van-grid :gutter="10" clickable style="display: flex" :column-num="2">
    <van-grid-item to="/analyse/calendar">
      <img src="@/assets/analyse_img/AQI.png" alt="" />
      <h3>空气质量日历</h3>
      <p>查看空气质量情况</p>
    </van-grid-item>
    <van-grid-item to="/analyse/cityrank">
      <img src="@/assets/analyse_img/paiming.png" alt="" />
      <h3>日排名</h3>
      <p>查看各个城市排名情况</p>
    </van-grid-item>
    <van-grid-item to="/analyse/citylist">
      <img src="@/assets/analyse_img/list.png" alt="" />
      <h3>城市列表</h3>
      <p>查看城市实时数据</p>
    </van-grid-item>
    <van-grid-item to="/analyse/vscity">
      <img src="@/assets/analyse_img/vs.png" alt="" />
      <h3>城市对比</h3>
      <p>对比指定城市的空气质量</p>
    </van-grid-item>
  </van-grid>
  <NavbarView></NavbarView>
</template>

<script setup lang="ts">
import NavbarView from '@/components/navbar/IndexView.vue'
</script>

<style lang="scss" scoped>
.header {
  height: 40px;
  background: #fff;
  line-height: 40px;
  font-size: 16px;
  text-align: center;
  margin-bottom: 10px;
}
:deep(.van-grid-item) {
  height: 200px;
  img {
    width: 70px;
    height: 70px;
    border-radius: 5px;
  }
  h3 {
    margin-top: 10px;
  }
  p {
    font-size: 12px;
    color: #a8a8a8;
  }
}
</style>
